import xFetch from './xFetch';

export async function submitOrderApply(order) {
  if (order.type == 'apply')
    return xFetch('/order/submit.do', order);
  else if (order.type == 'reapply')
    return xFetch('/order/reapply.do', order);
}

export async function queryOrdersForCheck() {
  return xFetch('/order/queryForCheckList.do', {});
}

export async function queryOrderForCheck(id) {
  return xFetch('/order/queryForCheckOne.do', id);
}

export async function queryTimeLines(studentId) {
  return xFetch('/order/queryTimeLines.do', studentId);
}

export async function checkOrder(order) {
  return xFetch('/order/check.do', order);
}

